package Construct;

/**
 * 产品1构造器
 * Created by Garden on 2019/5/13.
 */
public class ProductOneBuilder {

    public String assemblyOne;
    public String assemblyTwo;

    public ProductOneBuilder addAssemblyOne(String assemblyOne){
        this.assemblyOne = assemblyOne;
        return this;
    }

    public ProductOneBuilder addAssemblyTwo(String assemblyTwo){
        this.assemblyTwo = assemblyTwo;
        return this;
    }

    public AbstractProduct build(){
        return new ProductOne(this);
    }

}
